package com.gamefx.resource
{
	import flash.events.Event;
	import flash.utils.ByteArray;

	public class BinaryLoader extends DataLoader
	{
		public function BinaryLoader(urlOrRequest:*, priority:uint=1, estimatedBytes:uint=0)
		{
			super(urlOrRequest, priority, estimatedBytes);
		}

		/**
		 * 
		 */
		private var _data:ByteArray;
		
		public function get data():ByteArray
		{
			return _data;
		}
		

		override protected function onDataComplete(event:Event, bytes:ByteArray):void
		{
			_data = bytes;
			
			super.onComplete(event);
		}
		
	}
}